package com.jspx.txweb.table;

import com.jspx.sober.annotation.Column;
import com.jspx.sober.annotation.IDType;
import com.jspx.sober.annotation.Id;
import com.jspx.sober.annotation.Table;
import com.jspx.sober.table.OperateTable;
import com.jspx.utils.StringUtil;

/**
 * Created by chenyuan on 15-6-10.
 * Blocked 表示不允许发布
 * 要屏蔽的关键字,关键字来源两个部分，本表和 屏蔽的主机名称
 */
@Table(name = "jspx_blocked_word", caption = "屏蔽关键字")
public class BlockedWord extends OperateTable {
    @Id(auto = true, type = IDType.serial)
    @Column(caption = "ID", notNull = true)
    private long id = 0;

    @Column(caption = "名称", length = 120, notNull = true)
    private String word = StringUtil.empty;

    @Column(caption = "识别次数", notNull = true)
    private int times = 0;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public int getTimes() {
        return times;
    }

    public void setTimes(int times) {
        this.times = times;
    }
}
